package com.ruoyi.collaboration.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.collaboration.mapper.JwIndustryEduCollaborationMapper;
import com.ruoyi.collaboration.domain.JwIndustryEduCollaboration;
import com.ruoyi.collaboration.service.IJwIndustryEduCollaborationService;

/**
 * 产学合作项目情况Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-13
 */
@Service
public class JwIndustryEduCollaborationServiceImpl implements IJwIndustryEduCollaborationService 
{
    @Autowired
    private JwIndustryEduCollaborationMapper jwIndustryEduCollaborationMapper;

    /**
     * 查询产学合作项目情况
     * 
     * @param iecId 产学合作项目情况主键
     * @return 产学合作项目情况
     */
    @Override
    public JwIndustryEduCollaboration selectJwIndustryEduCollaborationByIecId(Long iecId)
    {
        return jwIndustryEduCollaborationMapper.selectJwIndustryEduCollaborationByIecId(iecId);
    }

    /**
     * 查询产学合作项目情况列表
     * 
     * @param jwIndustryEduCollaboration 产学合作项目情况
     * @return 产学合作项目情况
     */
    @Override
    @DataScope(deptAlias = "d",userAlias = "d")
    public List<JwIndustryEduCollaboration> selectJwIndustryEduCollaborationList(JwIndustryEduCollaboration jwIndustryEduCollaboration)
    {
        return jwIndustryEduCollaborationMapper.selectJwIndustryEduCollaborationList(jwIndustryEduCollaboration);
    }

    /**
     * 新增产学合作项目情况
     * 
     * @param jwIndustryEduCollaboration 产学合作项目情况
     * @return 结果
     */
    @Override
    public int insertJwIndustryEduCollaboration(JwIndustryEduCollaboration jwIndustryEduCollaboration)
    {
        return jwIndustryEduCollaborationMapper.insertJwIndustryEduCollaboration(jwIndustryEduCollaboration);
    }

    /**
     * 修改产学合作项目情况
     * 
     * @param jwIndustryEduCollaboration 产学合作项目情况
     * @return 结果
     */
    @Override
    public int updateJwIndustryEduCollaboration(JwIndustryEduCollaboration jwIndustryEduCollaboration)
    {
        jwIndustryEduCollaboration.setUpdateTime(DateUtils.getNowDate());
        return jwIndustryEduCollaborationMapper.updateJwIndustryEduCollaboration(jwIndustryEduCollaboration);
    }

    /**
     * 批量删除产学合作项目情况
     * 
     * @param iecIds 需要删除的产学合作项目情况主键
     * @return 结果
     */
    @Override
    public int deleteJwIndustryEduCollaborationByIecIds(Long[] iecIds)
    {
        return jwIndustryEduCollaborationMapper.deleteJwIndustryEduCollaborationByIecIds(iecIds);
    }

    /**
     * 删除产学合作项目情况信息
     * 
     * @param iecId 产学合作项目情况主键
     * @return 结果
     */
    @Override
    public int deleteJwIndustryEduCollaborationByIecId(Long iecId)
    {
        return jwIndustryEduCollaborationMapper.deleteJwIndustryEduCollaborationByIecId(iecId);
    }
}
